package com.happycat.mobile.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 赠送礼物dto
 */
@Data
public class UserGiveGiftSaveDto {

	@ApiModelProperty(value="赠送的礼物id", required = true)
    @NotNull(message = "礼物不能为空")
	private Long giftId;

	@ApiModelProperty(value="礼物来源: 背包，聊天室", required = true)
    @NotBlank(message = "礼物来源不能为空")
	private String source;

	@ApiModelProperty(value="礼物数量(被赠送人是多个时为每人该数量)，默认1")
    @Min(value = 1, message = "赠送数量不得低于1")
	private Integer giftNumber = 1;

	@ApiModelProperty(value="被赠送人主键id, 多个逗号分隔", required = true)
    @NotBlank(message = "被赠送方不能为空")
	private String receiverIds;

	@ApiModelProperty(value="房间编号/id")
	private String roomId;

	@ApiModelProperty(value="房间名称")
	private String roomName;

	// TODO 后续去掉
	@ApiModelProperty(value="赠送人主键id，正常应该从系统上下文获取，但目前用户登录后未设置上下文，所以先前端传入吧, 后续去掉该参数", hidden = true)
	private Long giveId;

}